home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
misc2
/
ole_101.zip
/
SCHMOO.ZIP
/
EXIT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-13
|
887b
|
47 lines
/*
* EXIT.C
*
* Functions for final cleanup of the SCHMOO application. Calls any
* OLE specific functions.
*
* Copyright(c) Microsoft Corp. 1992 All Rights Reserved
*
*/
#include <windows.h>
#include <ole.h>
#include "schmoo.h"
#include "oleglobl.h"
/*
* FApplicationExit
*
* Purpose:
* Provides final cleanup of any objects and other actions that
* must occur at closing time.
*
* Parameters:
* pGlob LPGLOBALS to global variable block.
*
* Return Value:
* BOOL TRUE if everything succeeds, FALSE otherwise.
*/
BOOL FAR PASCAL FApplicationExit(LPGLOBALS pGlob)
{
BOOL fRet=TRUE;
//Free the stringtable.
if (NULL!=pGlob->hStringMem)
LocalFree(pGlob->hStringMem);
#ifdef MAKEOLESERVER
fRet=FOLEExit(pOLE);
#endif //MAKEOLESERVER
return fRet;
}